.alarm-content {
    .page-header {
        h1 {
            font-size: 24px;
            font-weight: 600;
            color: #262626;
            margin: 0;
            line-height: 1.4;

            .top-actions {
                float: right;

                .action-btn {
                    background: var(--redLiner);
                    font-size: 18px !important;
                    color: #FFFFFF !important;
                    border-color: transparent !important;
                    font-weight: bold;
                    border-radius: 8px;
                    height: 56px;
                    width: 260px;
                }
            }
        }
    }

    .alarm-wrapper {
        display: flex;
        gap: 24px;
        height: 100%;
        width: 100%;
        margin-top: 20px;

        // 左侧Interlock Configuration
        .interlock-config {
            width: 40%;
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #e8e8e8;

            h2 {
                font-size: 20px;
                font-weight: 600;
                color: #262626;
                margin: 0 0 20px 0;
            }

            .action-buttons {
                display: flex;
                gap: 12px;
                margin-bottom: 20px;

                .import-btn {
                    background-color: #FFFFFF !important;
                    border-color: #d9d9d9 !important;
                    color: #000000 !important;
                    border-radius: 6px;
                    font-weight: 500;
                }

                .icon-plus {
                    color: #009999 !important;
                    width: 18px;
                    height: 18px;
                }

                .delete-btn {
                    border-radius: 6px;
                    font-weight: 500;
                    background-color: #FFFFFF !important;
                    border-color: #d9d9d9 !important;
                    color: #c6324e !important;
                }

            }

            .search-bar {
                display: flex;
                align-items: center;
                background-color: #f5f5f5;
                border-radius: 6px;
                padding: 8px 12px;
                margin-bottom: 20px;

                .anticon {
                    color: #999;
                    margin-right: 8px;
                }

                input {
                    border: none;
                    background: none;
                    outline: none;
                    flex: 1;
                    font-size: 14px;

                    &::placeholder {
                        color: #999;
                    }
                }
            }

            .template-section {
                margin-bottom: 24px;

                .section-header {
                    font-weight: 600;
                    height: 50px;
                    color: #262626;

                    .add-icon {
                        color: #009999;
                        cursor: pointer;
                        font-size: 20px;
                        margin-right: 8px;
                    }

                    .select-btn {
                        width: 150px;
                        float: right;
                        z-index: 1;
                        margin-right: 10px;
                    }
                }

                .template-items {
                    .template-item {
                        padding: 12px;
                        border-radius: 6px;
                        cursor: pointer;
                        transition: all 0.3s;
                        margin-bottom: 8px;
                        font-size: 15px;

                        &:hover {
                            background-color: #f5f5f5;
                        }

                        &.selected {
                            background-color: #e0dbe3;
                        }

                        .template-info {
                            display: flex;
                            justify-content: space-between;
                            align-items: center;

                            .template-icon {
                                margin-right: 12px;

                                .success-icon {
                                    color: #009999;
                                    font-size: 16px;
                                }
                            }

                            .template-name {
                                font-weight: 500;
                                color: #262626;
                                flex: 1;
                            }

                            .edit-btn {
                                cursor: pointer;
                                font-size: 14px;
                                transition: color 0.3s;
                            }
                        }
                    }
                }
            }
        }

        // 右侧Alarm status
        .alarm-status {
            width: 55%;
            background-color: #fff;
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #e8e8e8;

            h2 {
                font-size: 20px;
                font-weight: 600;
                color: #262626;
                margin: 0 0 20px 0;
            }

            .action-buttons {
                display: flex;
                gap: 12px;
                margin-bottom: 20px;

                .import-btn {
                    background-color: #FFFFFF !important;
                    border-color: #d9d9d9 !important;
                    color: #000000 !important;
                    border-radius: 6px;
                    font-weight: 500;
                }

                .icon-plus {
                    color: #009999 !important;
                    width: 18px;
                    height: 18px;
                }

            }

            .alarm-table {

                overflow-y: auto;
                max-height: 600px;

                table {
                    width: 100%;
                    border-collapse: collapse;
                    font-size: 14px;

                    th,
                    td {
                        padding: 12px 8px;
                        text-align: left;
                        border-bottom: 1px solid #f0f0f0;
                        vertical-align: middle;
                    }

                    th {
                        background-color: #fafafa;
                        font-weight: 600;
                        color: #262626;
                        border-bottom: 2px solid #e8e8e8;
                        position: sticky;
                        top: 0;
                        z-index: 1;
                    }

                    .threshold-header {
                        display: flex;
                        // flex-direction: column;
                        align-items: center;
                        gap: 4px;

                        .threshold-icons {
                            display: flex;
                            gap: 4px;
                           

                            .threshold-icon {
                                width: 18px;
                                height: 18px;
                                border-radius: 50%;

                                &.warning {
                                    background-color: #faad14;
                                }

                                &.danger {
                                    background-color: #ff4d4f;
                                }
                            }
                        }

                        .operators {
                            font-weight: 600;
                            color: #262626;
                            margin-left: 10px;
                        }
                    }

                    .input-group {
                        display: flex;
                        align-items: center;
                        gap: 4px;

                        .threshold-input {
                            width: 80px;
                            border-radius: 4px;
                            border: 1px solid #d9d9d9;

                            &:focus {
                                border-color: #009999;
                                box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.2);
                            }
                        }

                        .unit {
                            font-size: 12px;
                            color: #666;
                            min-width: 20px;
                        }
                    }
                }
            }
        }

        // 编辑弹窗样式
        .edit-modal {
            .edit-content {
                .form-group {
                    margin-bottom: 20px;

                    label {
                        display: block;
                        margin-bottom: 8px;
                        font-weight: 500;
                        color: #262626;
                    }

                    .ant-input,
                    .ant-input-textarea {
                        width: 100%;
                        border-radius: 6px;
                    }
                }
            }
        }
    }
}